package com.weipai.education.mapper;

import com.weipai.education.model.UserAddress;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserAddressMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(UserAddress record);

    int insertSelective(UserAddress record);

    UserAddress selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(UserAddress record);

    int updateByPrimaryKey(UserAddress record);

    List<UserAddress> getUserAddress(String userId);

    UserAddress getUserIsDefaultAddress(@Param("userId") String userId, @Param("isDefault") int isDefault);
}